﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="PrivSysModule.aspx.cs" Inherits="StoragePeriod.Web.SysManage.PrivSysModule" %>
<%@ Register src="UC_PrivMenu.ascx" tagname="UC_PrivMenu" tagprefix="uc1" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
    .layout{ background:url(../images/images_59.jpg) no-repeat;}
    .left-cloumn{display:none;}
    .right-cloumn{width:944px;}
    #sms_title_li_0{ background:url(../images/images_55.jpg) no-repeat;}
    .Left_Search{width:190px;padding-left:10px; height:30px;border-top:1px solid #ccc;}
    .right_Stafflist{ overflow:auto;}
</style>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MainLeft" runat="server">
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="MainContent" runat="server">
<div class="sms_title">
    <ul>
        <li><a href="OperationManage.aspx">基础设置</a></li>
        <li><a href="PrivilegeManage.aspx" style="color:#f90;">权限管理</a></li>
        <li><a href="PersonnelManage.aspx">人员管理</a></li>
    </ul>
</div>
<div class="sms_main">
    <div class="BasicData_left">
        <h2>权限设置</h2>
        <uc1:UC_PrivMenu ID="UC_PrivMenu1" runat="server" ShowId="3"/>
    </div>
    <div class="BasicData_right">
        
<div class="BasicDataBtn">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td align="right">
               <button id="add-priv" class="button btn_0">添加模块</button> 
            </td>
            <td style="width: 10px;">
            </td>
        </tr>
    </table>
</div>
<div class="BasicDataList">
    <asp:GridView ID="GridView1" CssClass="BasicDataTable" Width="100%" runat="server"
        OnPreRender="GridView1_PreRender">
        <Columns>
            <asp:TemplateField ShowHeader="False">
                <ItemTemplate>
                    <asp:Button ID="delete" CssClass="RepBtn_Del" OnClick="delete_Click" runat="server" OnClientClick="return confirm('是否删除？');" CommandName="Del" CommandArgument=<%#Eval("模块代码")%> />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div style=" text-align:center;">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" PageSize="12" 
            onpagechanged="AspNetPager1_PageChanged" >
        </webdiyer:AspNetPager>
    </div>
</div>
<div class="die">
    <div id="dialog-form" style=" width:350px" title="系统权限模块维护">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            添加：
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlModuleType" runat="server">
                                <asp:ListItem Text="系统模块" Value="0" />
                                <asp:ListItem Text="权限模块" Value="1" />
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <asp:Panel runat="server" ID="SysModuleView" Visible="true">
                        <tr>
                            <td>
                                父级：
                            </td>
                            <td>
                                <asp:DropDownList runat="server" AutoPostBack="true" ID="ddlParentNode">
                                    <asp:ListItem Text="根节点" Value="Root" />
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </asp:Panel>
                    <tr>
                        <td>
                            名称：
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="txtSysModuleName" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            描述：
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="txtSysModuleDesc" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            权限码：
                        </td>
                        <td>
                            <asp:TextBox runat="server" ToolTip="可选参数" ID="txtPrivCode" />
                        </td>
                    </tr>
                    <asp:Panel runat="server" ID="PrivModuleView" Visible="false">
                        <tr>
                            <td>
                                所属页面：
                            </td>
                            <td>
                                <asp:DropDownList runat="server" ID="ddlPageNode">
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </asp:Panel>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:Button Text="提交" runat="server" CssClass="die" ID="btSave" OnClick="btSave_Click" />
    </div>
    <asp:HiddenField ID="HiddenField1" runat="server" />
</div>
    </div>
</div>
<div class="sms_foot">
<asp:HiddenField ID="hdRoleCode" runat="server" />
    <img src="../images/images_58.jpg" width="944" height="8" class="float_left" />
</div>
</asp:Content>
